<template>
	<view class="container">
		<view class="personal-info-box">
			<view class="portrait">
				<image :src="info.portrait" class="portrait-img"></image>
			</view>
			<view class="content">
				<view class="name-box">
					<text>{{info.username}}</text>
				</view>
				<view class="job-box">
					<text>{{info.job}}</text>
				</view>
				<view class="wechat-box">
					<text>微信号：{{info.wechat}}</text>
				</view>
			</view>
		</view>
		<view class="scan-record-box">
			<view class="scan-box">
				<image src="../../../../static/icon/u970.png" class="scan-icon">
				</image>
				<text class="font">
					扫一扫
				</text>
				
			</view>
			<view class="record-box">
				<image src="../../../../static/icon/u977.png" class="record-icon">
				</image>
				<text class="font">
					工作单记录
				</text>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {
					portrait: '../../../../static/logo.png',
					username: '王超',
					job: '工程师',
					wechat: 'wx12213123'
				}
			}
		},
		methods: {

		}
	}
</script>

<style scoped>
	page {
		background-color: #EFEFF4;
	}

	.container {
		height: 100%;
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	/*************************个人信息box-start*********************************/
	.personal-info-box {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		background-color: #FFFFFF;
		height: 350rpx;
	}

	/* 头像 */
	.portrait {
		width: 37%;
		height: 100%;
		line-height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.portrait-img {
		border-radius: 100px;
		width: 210rpx;
		height: 210rpx;
	}



	/* 个人信息 */
	.content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		width: 62%;
		height: 100%;
	}

	.name-box {
		width: 100%;
		height: 20%;
		font-size: 36rpx;
	}

	.job-box {
		height: 20%;
		font-size: 30rpx;
	}

	.wechat-box {
		font-size: 30rpx;
		height: 20%;
	}

	/* 扫码和工作单记录 */
	.scan-record-box {
		padding: 20rpx;
		margin-top: 40rpx;
		background-color: #FFFFFF;
		display: flex;
		flex-direction: column;
		height: 180rpx;
	}

	.scan-box,.record-box {
		display: flex;
		flex-direction: row;
		align-items: center;
		font-size: 26rpx;
		font-weight: 400;
		width: 100%;
		height: 50%;
	}

	.scan-icon,.record-icon{
		width: 7%;
		height: 50rpx;
	}
	.font{
		margin-left: 5rpx;
		height: 100%;
		line-height: 90rpx;
	}

	.record-box {
		width: 100%;
		height: 50%;
	}


	/*************************个人信息box-end*********************************/
</style>
